package com.beijiteshop.shop.ui.search

import com.beijiteshop.libcommon.network.RetrofitClient
import com.beijiteshop.shop.ui.search.repo.SearchRepo
import com.beijiteshop.shop.ui.search.repo.SearchService
import com.beijiteshop.shop.ui.search.vm.SearchVM
import org.koin.android.viewmodel.dsl.viewModel
import org.koin.dsl.module

/**
 * @Author LiaoZhongKai
 * @Date 2021/3/16 16:16
 * @Description
 */

val searchModule = module {

    single{
        get<RetrofitClient>().getService(SearchService::class.java)
    }

    single {
        SearchRepo(get())
    }

    viewModel {
        SearchVM(get())
    }

}